package com.zohnblog.model.domain;

/**
 * IP封禁模式
 */
public class IPBanMode {
    private  Integer id;
    private  String modeName;
    private  Integer times; // 时间
    private  Integer maxRequests; // 设置时间内最多请求次数
    private  Boolean openBan;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getModeName() {
        return modeName;
    }

    public void setModeName(String modeName) {
        this.modeName = modeName;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getMaxRequests() {
        return maxRequests;
    }

    public void setMaxRequests(Integer maxRequests) {
        this.maxRequests = maxRequests;
    }

    public Boolean getOpenBan() {
        return openBan;
    }

    public void setOpenBan(Boolean openBan) {
        this.openBan = openBan;
    }

    @Override
    public String toString() {
        return "IPBanMode{" +
                "id=" + id +
                ", modeName='" + modeName + '\'' +
                ", times=" + times +
                ", maxRequests=" + maxRequests +
                ", openBan=" + openBan +
                '}';
    }
}
